<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title><?php echo $settings['organisation'].":".$page['title']; ?></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>

<!-- date/time display below-->
<script type="text/javascript">
<!--

function tS(){ x=new Date(tN().getUTCFullYear(),tN().getUTCMonth(),tN().getUTCDate(),tN().getUTCHours(),tN().getUTCMinutes(),tN().getUTCSeconds()); x.setTime(x.getTime()+dS()+0); return x; } 
function tN(){ return new Date(); } 
function dS(){ return ((tN().getTime()>fD(0,2,2,-1).getTime())&&(tN().getTime()<fD(0,9,2,-1).getTime()))?3600000:0; } 
function fD(d,m,h,p){ var week=(p<0)?7*(p+1):7*(p-1),nm=(p<0)?m+1:m,x=new Date(tN().getUTCFullYear(),nm,1,h,0,0),dOff=0; if(p<0){ x.setTime(x.getTime()-86400000); } if(x.getDay()!=d){ dOff=(x.getDay()<d)?(d-x.getDay()):0-(x.getDay()-d); if(p<0&&dOff>0){ week-=7; } if(p>0&&dOff<0){ week+=7; } x.setTime(x.getTime()+((dOff+week)*86400000)); } return x; } 
function lZ(x){ return (x>9)?x:'0'+x; } 
function dE(x){ if(x==1||x==21||x==31){ return 'st'; } if(x==2||x==22){ return 'nd'; } if(x==3||x==23){ return 'rd'; } return 'th'; } 
function dT(){ document.getElementById('tP').innerHTML=eval(oT); setTimeout('dT()',1000); } 
function y4(x){ return (x<500)?x+1900:x; } 
var dN=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'),mN=new Array('January','February','March','April','May','June','July','August','September','October','November','December'),oT="dN[tS().getDay()]+' '+tS().getDate()+dE(tS().getDate())+' '+mN[tS().getMonth()]+' '+y4(tS().getYear())+' '+':'+':'+' '+lZ(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '";
if(!document.all){ window.onload=dT; }else{ dT(); }
//-->
</script>
<!-- End date/time display -->
<link href="./gap_user_files/skins/standard/gmsl9/generic/gmslcss.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--

-->
</style>
#GMSLAP#SKIN#
</head>

<body>
<div id="screen">
  <div id="page">
    <div id="header">
      <div id="logosearchbutton">
        <p><img src="./gap_user_files/skins/standard/gmsl9/images/com.jpg" alt="comlogo" width="100" height="50" /></p>
      </div>
      <div align="center"><span class="whitetext"><?php echo $settings['organisation'].":".$page['title']; ?></span> </div>
      <div align="center">
        <p class="whitetextsmall"><?php echo $page['info']; ?></p>
      </div>
      <div class="greytextsmall" id="toplinks">
        <div align="center">
          <p>System links go here</p>
          <div id="datetime">
            <div align="right">
            <p class="greytextsmall">
              <?php if($_SESSION["gmslcms_logged_in"]==TRUE)
			  												{
															echo '<a class=greytextsmall href=../login/logout.php>Log out!</a>';
															}
														else
															{
															echo '<a class=greytextsmall href=../login/login.php>Login now!</a>';
															} ?> </p>        
			<p class="greytextsmall">
              <?php if($_SESSION["gmslcms_logged_in"]==TRUE)
			  												{
															echo "Name: ".$_SESSION["gmslcms_user_fullname"];
															}
														else
															{
															echo ':)';
															} ?> </p>
			<p class="greytextsmall">
			  <?php	if($_SESSION["gmslcms_logged_in"]==TRUE)
															{
															echo "Username: ".$_SESSION["gmslcmsusername"];
															}
														else
															{
															echo 'Not logged in';
															} ?> </p>
			<span id="tP">&nbsp;</span></div>
          </div>
        </div>
      </div>
    </div>
    <div id="contentholder">
	<div id="sideholder">
      <div id="sidebar">
        <p class="gmsltext"><?php eval($page['sidebar']); ?></p>
        </div>
      <div id="content">
#GMSLAP#SKIN#
</div>
    </div>
    <div id="footer">
      <p class="footertext">&copy; System copyright: groupmsl.co.uk 2007. All rights reserved. &copy; Content Copyright: YOUR ORGONISETION NAME 2007. All rights reserved. This site is not advertised fit for any purpose, including even browsing. None of the content off this site is advertised as fit for any purpose. Logo copyright groupmsl.co.uk 2007. Sites or any other content not owned by groupmsl.co.uk, dotcomnetworks.co.uk, or YOUR ORGONISATION NAME are not our responsibility. Before using this site you must agree to these terms. Your platform, browser and version is: <?php echo "$br->Platform, $br->Name version $br->Version" ?></p>
    </div>
    </div>
  </div>
</div>
</body>
</html>
